package cn.com.bluemoon.daps.model.config;

import cn.com.bluemoon.daps.api.sync.factory.RemoteSyncServiceFallbackFactory;
import cn.com.bluemoon.dataserver.factory.DataServerModelTableServiceFallbackFactory;
import cn.com.bluemoon.metadata.inter.factory.MetaDataSchemaServiceFallbackFactory;
import cn.com.bluemoon.metadata.inter.factory.RegisterDapDataModelTableServiceFallbackFactory;
import cn.com.bluemoon.metadata.inter.factory.RemoteMetaDataTaskJobServiceFallbackFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MetaDataConfiguration {
    @Bean
    public MetaDataSchemaServiceFallbackFactory metaDataSchemaServiceFallbackFactory(){
        return new MetaDataSchemaServiceFallbackFactory();
    }

    @Bean
    public RegisterDapDataModelTableServiceFallbackFactory registerDapDataModelTableServiceFallbackFactory(){
        return new RegisterDapDataModelTableServiceFallbackFactory();
    }

    @Bean
    public RemoteMetaDataTaskJobServiceFallbackFactory remoteMetaDataTaskJobServiceFallbackFactory(){
        return new RemoteMetaDataTaskJobServiceFallbackFactory();
    }

    @Bean
    public DataServerModelTableServiceFallbackFactory dataServerModelTableServiceFallbackFactory(){
        return new DataServerModelTableServiceFallbackFactory();
    }
}
